﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Mytodo: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'mytodo' %>
  <%= javascript_include_tag 'webcalendar' %>
  <%= javascript_include_tag 'prototype' %>
  <%= javascript_include_tag 'effects' %>
</head>
<body id="mytodo">
  <div id="banner">
		<img src="/images/logo.png" />
		<%= @page_title || "v0.4" %>
	</div>
	<div id="columns">
		<div id="side">
			<a href="/dashboard">我的待办事项</a> |      
			<a href="/manage">日报汇总</a> |      
			<% if User.role?(session[:user_id], 'admin') %>	
				<a href="/login/list_users">系统管理</a> |
			<% end %>
			<a href="/login/password">修改密码</a> |
			<a href="/login/logout">登出[<%= h(User.find(session[:user_id]).full_name)%>]</a><br />		
		</div>
		<div id="main">
			<div class="flash"><%= flash[:notice] %></div>					
			<%= yield  :layout %>
		</div>
	</div>
</body>
</html>
